//Zo --start

import axios from '../axios'

const ADMIN_SUBJECT = '/admin/subject'

export default {
    addSubject(data){
        return axios({
            url:ADMIN_SUBJECT+'/add',
            method:'POST',
            data
        })
    },

    getSubjectList(params){
        return axios({
            url:ADMIN_SUBJECT+'/list',
            method:'GET',
            params
        })
    },

    updateSubject(data){
        return axios({
            url:ADMIN_SUBJECT+'/update',
            method:'POST',
            data
        })
    }
}

//Zo ---end